﻿@model SoftHotel.Models.Consumo

@{
    ViewBag.Title = "Detalle Consumo";
}

<h2>Create2</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend> @Html.DisplayFor(model =>model.servicio.nombre)</legend>
        <table>
        <tr>
		    <td style="width: 20px;"></td>
            <td style="font-weight: bold;"> Precio:</td>
		    <td>@Html.DisplayFor(model => model.monto)</td>	
		    <td style="font-weight: bold;"> Cantidad:</td>
		    <td>@Html.EditorFor(model => model.cantidad)</td>	
	    </tr>
	    <tr>
		    <td style="width: 20px;"></td>
		    <td style="font-weight: bold;"> Monto Total</td>
		    <td>@Html.EditorFor(model => model.montoTotal)</td>	
            <td></td>
            <td></td>
	    </tr>
          <tr>
         @if (Model.servicio.dato1.Length > 0)
         {
         <td style="width: 20px;"></td>
         <td style="font-weight: bold;">
            @Html.DisplayFor(model => model.servicio.dato1)
        </td>
        <td>
            @Html.EditorFor(model => model.dato1)
            @Html.ValidationMessageFor(model => model.dato1)
        </td>
        }  
        @if (Model.servicio.dato2.Length > 0)
        {
        <td style="font-weight: bold;">
            @Html.DisplayFor(model => model.servicio.dato2)
        </td>
        <td>
            @Html.EditorFor(model => model.dato2)
            @Html.ValidationMessageFor(model => model.dato2)
        </td>
        }
         </tr>
          <tr>
        @if (Model.servicio.dato3.Length > 0)
        {
        <td style="width: 20px;"></td>
         <td style="font-weight: bold;">
            @Html.DisplayFor(model => model.servicio.dato3)
        </td>
        <td>
            @Html.EditorFor(model => model.dato3)
            @Html.ValidationMessageFor(model => model.dato3)
        </td>
         }
        @if (Model.servicio.dato4.Length > 0)
        {
         <td style="font-weight: bold;">
            @Html.DisplayFor(model => model.servicio.dato4)
        </td>
        <td>
            @Html.EditorFor(model => model.dato4)
            @Html.ValidationMessageFor(model => model.dato4)
        </td>
        }
        </tr>
        <tr>
        @if (Model.servicio.dato5.Length > 0)
        {        <td style="width: 20px;"></td>
         <td style="font-weight: bold;">
            @Html.DisplayFor(model => model.servicio.dato5)
        </td>
        <td>
            @Html.EditorFor(model => model.dato5)
            @Html.ValidationMessageFor(model => model.dato5)
        </td>
        }        
        @if (Model.servicio.dato6.Length > 0)
        {
       <td style="font-weight: bold;">
            @Html.DisplayFor(model => model.servicio.dato6)       
       </td>
        <td>            
        @Html.EditorFor(model => model.dato6)
            @Html.ValidationMessageFor(model => model.dato6)
        </td>
        }
        </tr><tr>
        @if (Model.servicio.dato7.Length > 0)
        {
       <td style="width: 20px;"></td>
         <td style="font-weight: bold;">
            @Html.DisplayFor(model => model.servicio.dato7)
        </td>
        <td>
            @Html.EditorFor(model => model.dato7)
            @Html.ValidationMessageFor(model => model.dato7)
        </td>
        }
         @if (Model.servicio.dato8.Length > 0)
         {
                <td style="font-weight: bold;">
            @Html.DisplayFor(model => model.servicio.dato8)
        </td>
        <td>
            @Html.EditorFor(model => model.dato8)
            @Html.ValidationMessageFor(model => model.dato8)
        </td>
         }
         </tr>
         <tr>
         @if (Model.servicio.dato9.Length > 0)
         {
               <td style="width: 20px;"></td>
         <td style="font-weight: bold;">
            @Html.DisplayFor(model => model.servicio.dato9)
       </td>
       <td>
            @Html.EditorFor(model => model.dato9)
            @Html.ValidationMessageFor(model => model.dato9)
       </td>
         }
          @if (Model.servicio.dato4.Length > 10)
          {     
         <td style="font-weight: bold;">
            @Html.DisplayFor(model => model.servicio.dato10)
        </td>
        <td>
            @Html.EditorFor(model => model.dato10)
            @Html.ValidationMessageFor(model => model.dato10)
        </td>
          }
          </tr>
          </table>  
         <p>
            <input type="submit" value="Guardar" />
        </p>

    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Search")
</div>
